﻿#pragma once

#include "Scene/SceneNodeComponent.h"
#include "Math/Math.h"
#include "PointLightComponent.m.h"

RCLASS()
class WHENGINE_API RPointLightComponent: public RSceneNodeComponent
{
    ROBJECT
public:

    virtual void Paint(CRenderScene* InRenderData) override;

    //光照颜色
    RFIELD()
    SColor Color=SColor::White;

    //光照强度
    RFIELD()
    float Intensity=900000;

    RFIELD()
    float Radius=1000;

    RFIELD()
    float ShadowBias=0.1f;

};